package com.example.villagedevelop.generator.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.villagedevelop.generator.entity.HomeStay;
import com.example.villagedevelop.generator.entity.HomeStayVO;

import java.util.List;

public interface HomeStayService extends IService<HomeStay> {

    public List<HomeStayVO> findAll();
    public List<HomeStayVO> homeListtoVOList(List<HomeStay> homeStayList);

    public List<HomeStayVO> findHomeStayVOByTown(String town);
    public List<String> findVillage(String town);
    public List<HomeStayVO> findHomeStayVOByTown_village(String town,String village);
    public List<HomeStayVO> findHomeStayVO_Classify(String field,int min,int max);

    public void deleteObject(int id);
    public void changeDefaultSort(int id1, int id2);

}
